<div>
    <AntDesign.InputNumber @bind-Value="myValue" Min="1" Max="10" DefaultValue="3"></AntDesign.InputNumber>
</div>

@code{
    private double myValue { get; set; }
}